// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
//带了拦截器的axios
import axios from "./http/http"

Vue.config.productionTip = false

//定义总线
Vue.prototype.$bus = new Vue()
//定义发送请求的函数  以后所有的组件都可以访问到一个$http的属性
Vue.prototype.$http = axios

//引入仓库
import store from "./store/store"

/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: { App },
  template: '<App/>',
  store
})
